home *** CD-ROM | disk | FTP | other *** search
-
- 000alpha.notes:
-
- Initial version --- jdc 3/19/90
-
- You're looking at gplotlib--an accompaniment to gnuplot that I'm thinking
- about posting someday. Put the files in this shar package into a directory
- called ``gplotlib'' under the normal gnuplot source directory. (This is to
- allow the Makefile to find ../term where the terminal routines are expected
- to live.)
-
- Right now the gplotlib library consists of two files: low level routines
- (gterm.c), and "high level" routines (gsr.c). In addition, there is some
- documentation (make doc) and examples: bars.c (using low level routines only)
- and bar.c (using a mix of high and low level routines).
-
- The "high level" routines are mostly untested. The assortment presented
- is merely those that appeared after mucking with the gnuplot graphics.c
- code. Thus the library isn't really thought out or designed with any
- idea in mind that these are actually routines needed by users, rather they
- are just the routines that gnuplot itself would have probably needed if it
- had been written with an underlying library in mind. Using these gsr
- routines tends to create plots that look a lot like gnuplot plots.
-
- Certainly there is a lot of room for improvement here. Many design
- questions arise: Should, for example, there be a gsr_draw_line()
- routine? Or even, should there be a whole new direction or module
- of graphics support? One thing does seem true, however: with these
- routines the terminal drivers are now at least available to programmers.
-
- The bar.c program is not really finished. I'm not sure what else
- it needs, however, since I don't use bar charts myself. It provides
- a pragmatic example of using these two libraries in an intimate, but
- probably not very clean, manner. I expect bar.c could profit from
- having better labels, and some method of assigning labels to the
- plot. Further, bars.c puts a small gap between the top of the highest
- bar and the boundary while bar.c does not do this.
-
- The makefile mentions pie.c--which is going to be a pie chart graphics
- program. This hasn't, however, been written. I assume it too will
- be a hodge-podge mix of gsr and gterm routines. In particular, the
- number of segments chosen to draw a circle will probably depend
- upon t->xmax and t->ymax to maximize the effect on a given terminal.
-
- Working on various graphics projects is the only way I know to tell
- if we are getting at all close to a usable library package. I'm sure
- there is a lot missing from this first edition... Any help or suggestions
- would be greatly appreciated.
-
- John Campbell
- ...arizona!naucse!jdc
- -or CAMPBELL@NAUVAX.bitnet
- -or (for small mail items only)- ...arizona!naucse!thunde!jdc
-